package com.zyz.A_程序基础.B_运算.整数;

/**
 * @author: vick
 * @Date: 2025/3/10
 * @Description:
 * @version: 1.0
 */
public class Demo2 {
    public static void main(String[] args) {
        //获取int类型的最大值
        System.out.println(Integer.MAX_VALUE); //2147483647
        //获取int类型的最小值
        System.out.println(Integer.MIN_VALUE); //-2147483648

        int a = 2147483646;
        int b = 2;
        int sum = a + b;
        System.out.println(sum);
    }
}
